package com.geralt.im.protocol;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

import com.geralt.im.commandenum.Code;

public class Response implements Serializable{
	Code statusCode;
	String type;
	Map<String,Object> parameter;
	public Response(){
		parameter = new HashMap<String, Object>();
	}
	
	public Code getStatusCode() {
		return statusCode;
	}
	public void setStatusCode(Code statusCode) {
		this.statusCode = statusCode;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public Map<String, Object> getParameter() {
		return parameter;
	}

	public void setParameter(Map<String, Object> parameter) {
		this.parameter = parameter;
	}

	@Override
	public String toString() {
		return "Response [statusCode=" + statusCode + ", type=" + type
				+ ", parameter=" + parameter + "]";
	}
	
	
}
